<?php 
	include_once 'thuvienham.php';
	include_once 'phieuchi_db.php';

	class phieuchi_bs 
	{
		//------------------Fields [5]------------------
			// #0
		private $MaPhieuChi = -1;
		public function SetMaPhieuChi($MaPhieuChi)   { $this->MaPhieuChi = $MaPhieuChi;   }
		public function GetMaPhieuChi()              { return $this->MaPhieuChi;          }
			// #1
		private $MaGiaoVien = "";
		public function SetMaGiaoVien($MaGiaoVien)   { $this->MaGiaoVien = $MaGiaoVien;   }
		public function GetMaGiaoVien()              { return $this->MaGiaoVien;          }
			// #2
		private $MaNguoiDung = "";
		public function SetMaNguoiDung($MaNguoiDung) { $this->MaNguoiDung = $MaNguoiDung; }
		public function GetMaNguoiDung()             { return $this->MaNguoiDung;         }
			// #3
		private $MaHopDong = -1;
		public function SetMaHopDong($MaHopDong)     { $this->MaHopDong = $MaHopDong;     }
		public function GetMaHopDong()               { return $this->MaHopDong;           }
			// #4
		private $SoTien = -1;
		public function SetSoTien($SoTien)           { $this->SoTien = $SoTien;           }
		public function GetSoTien()                  { return $this->SoTien;              }

		//------------------Method------------------
		public function Them()
		{
			$data = new phieuchi_db();
			return $data->Them($this->MaGiaoVien, $this->MaNguoiDung, $this->MaHopDong, $this->SoTien);
		}

		public function Xoa()
		{
			$data = new phieuchi_db();
			return $data->Xoa($this->MaPhieuChi);
		}
		public function XoaHopDong()
		{
			$data = new phieuchi_db();
			return $data->XoaHopDong($this->MaHopDong);
		}
		public function CapNhat()
		{
			$data = new phieuchi_db();
			return $data->CapNhat($this->MaPhieuChi, $this->MaGiaoVien, $this->MaNguoiDung, $this->MaHopDong, $this->SoTien);
		}

		public function LayDanhSach()
		{
			$data = new phieuchi_db();
			return $data->LayDanhSach($this->MaPhieuChi, $this->MaGiaoVien, $this->MaNguoiDung, $this->MaHopDong, $this->SoTien);
		}

	}

